<template>
	<div class="loading">
			<div class="fixed-circle"></div>
			<div class="rotate-circle">
				<div class="left"></div>
				<div class="right"></div>
				<div class="little-circle">
					<div class="ball"></div>
				</div>
			</div>
		</div>
</template>

<script>
export default {
  name: 'HelloWorld',
  data () {
    return {}
  }
}
</script>

<style scoped>
.loading{
	position: relative;
	width: 200px;
	height: 200px;
	left: 50%;
	margin-left: -100px;
}
.fixed-circle{
	width: 180px;
	height: 180px;
	border-radius: 50%;
	border: 5px solid #000;
	position: absolute;
	left: 5px;
	top: 10px;
	box-sizing: border-box;
}
.rotate-circle{
	position: absolute;
	width: 200px;
	height: 200px;
	clip: rect(0px 200px 200px 100px);
	animation: clip-animation 2s linear infinite;
}

.left,
.right,
.little-circle{
	top: 5px;
	position: absolute;
	width: 190px;
	height: 190px;
	border: 2px solid transparent;
	box-sizing: border-box;
	border-radius: 50%;
	border-color: rgb(127, 95, 179) transparent transparent rgb(127, 95, 179);
}
.little-circle{
	border: 0;
	z-index: 10;
	background: transparent;
	animation: ball-animation 2s linear infinite;
}
.ball{
	position: absolute;
	top: -5px;
	left: 50%;
	margin-left: -5px;
	width: 10px;
	height: 10px;
	background: rgb(30, 70, 4);
	border-radius: 50%;
}
.left{
	transform: rotate(-45deg);
	animation: left-animation 2s linear infinite;
}
.right{
	transform: rotate(-45deg);
	animation: right-animation 2s linear infinite;
}
@keyframes left-animation {
	0%{
		transform: rotate(-45deg);
	}50%{
		transform: rotate(135deg);
	}100%{
		transform: rotate(315deg);
	}
}
@keyframes right-animation {
	0%{
		transform: rotate(-45deg);
	}50%{
		transform: rotate(135deg);
	}100%{
		transform: rotate(135deg);
	}
}
@keyframes clip-animation {
	0%{
		clip: rect(0px 200px 200px 100px);
	}
	100%{
		clip: auto;
	}
}
@keyframes ball-animation {
	0%{
		transform: rotate(0deg);
	}100%{
		transform: rotate(360deg);
	}
}
</style>
